#include "shm.hpp"

int main()
{
    Shm sm(CREATER);
    char *mem = (char*)sm.VirtualAdd();

    // pipe
    NamedPipe pp(PATH,FILENAME);
    FifoComm fm(PATH,FILENAME);
    fm.OpenForRead();

    // 读取
    while(fm.Read())
    {
        printf("%s\n",mem);
    }

    fm.Close();

    return 0;
}